package com.dhl.facade;

/**
 * @title: Popcorn
 * @Author danghailiang
 * @Date: 2022/8/10 8:05
 * @Version 1.0
 */
// 爆米花
public class Popcorn {
    private static Popcorn instance = new Popcorn();

    private Popcorn(){}

    public static Popcorn getInstance(){
        return instance;
    }

    public void on(){
        System.out.println("打开爆米花机子");
    }
    public void off(){
        System.out.println("关闭爆米花机子");
    }
    public void pop(){
        System.out.println("开始爆爆米花");
    }
}
